package com.hyg.lib_common.DataModel.testting;

import java.util.ArrayList;

/**
 * @author: Administrator
 * @date: 2021/3/18
 */
public class TesttingXinliQuestion {
    String question;
    ArrayList<TesttingAnswer> arrayList;
    String type;


    public TesttingXinliQuestion(String question, ArrayList<TesttingAnswer> arrayList, String score) {
        this.question = question;
        this.arrayList = arrayList;
        this.type = score;
    }

    public TesttingXinliQuestion(String question, String answerString) {
        this.question = question;
        arrayList = new ArrayList<>();
        String[] strings = answerString.split(",");
        for (String string : strings) {
            arrayList.add(new TesttingAnswer(string, false));
        }
        this.type = "";
    }


    public TesttingXinliQuestion(String question, String string0, String string1) {
        this.question = question;
        arrayList = new ArrayList<>();
        arrayList.add(new TesttingAnswer(string0, false));
        arrayList.add(new TesttingAnswer(string1, false));
        this.type = "";
    }

 public TesttingXinliQuestion(String question, String string0, String string1,String string2,String string3) {
        this.question = question;
        arrayList = new ArrayList<>();
        arrayList.add(new TesttingAnswer(string0, false));
        arrayList.add(new TesttingAnswer(string1, false));
        arrayList.add(new TesttingAnswer(string2, false));
        arrayList.add(new TesttingAnswer(string3, false));
        this.type = "";
    }

 public TesttingXinliQuestion(String question,String string0, String string1,String string2,String string3,String string4) {
        this.question = question;
        arrayList = new ArrayList<>();
        arrayList.add(new TesttingAnswer(string0, false));
        arrayList.add(new TesttingAnswer(string1, false));
        arrayList.add(new TesttingAnswer(string2, false));
        arrayList.add(new TesttingAnswer(string3, false));
        arrayList.add(new TesttingAnswer(string4, false));
        this.type = "";
    }

    public TesttingXinliQuestion(String question,String string0, String string1,String string2,String string3,String string4,boolean isChecked,String type) {
        this.question = question;
        arrayList = new ArrayList<>();
        arrayList.add(new TesttingAnswer(string0, true));
        arrayList.add(new TesttingAnswer(string1, false));
        arrayList.add(new TesttingAnswer(string2, false));
        arrayList.add(new TesttingAnswer(string3, false));
        arrayList.add(new TesttingAnswer(string4, false));
        this.type = type;
    }







    public TesttingXinliQuestion() {
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public ArrayList<TesttingAnswer> getArrayList() {
        return arrayList;
    }

    public void setArrayList(ArrayList<TesttingAnswer> arrayList) {
        this.arrayList = arrayList;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "TesttingXinliQuestion{" +
                "question='" + question + '\'' +
                ", arrayList=" + arrayList +
                ", score=" + type +
                '}';
    }
}
